package com.kt.emall.auth.feign;

import com.kt.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @program: e-mall
 * @description: 第三方服务 -
 * @author: KamTang
 * @create: 2022-01-11 14:32
 **/
@FeignClient("emall-third-party")
public interface ThirdPartFeignService {

    /**
     * 发送验证码服务
     * @param phone
     * @param code
     * @return
     */
    @GetMapping("/sms/sendCode")
    R sendCode(@RequestParam("phone") String phone, @RequestParam("code") String code);
}
